package com.jdyinfo.ic.mysql.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.jdyinfo.ic.mysql.entity.Unit;

@Mapper
public interface UnitMapper {
	
	List<Unit> findUnitByBuildingId(@Param("buildingId") int buildingId);
	
	int insertOne(Unit unit);
	
	int updateOne(Unit unit);
	
	int deleteOne(@Param("id") int id);

}
